<!--
  // Creation History
  // --------------------------------------------------------------
  //	Company:			HTHK
  //	NAME:				RateList.jsp
  //	TITLE:				Rate List
  //	FUNCTION:			List the Searching result.
  //	BY:				Poly Li
  //	DATE:				2004-01-09
  // --------------------------------------------------------------
-->

<html>
<%@ include file="../tssheader.jsp" %>
<%@ page import="tss.rate.*" %>
<body>
<%
	 RateBean[] Rates = (RateBean[])request.getAttribute("Rates");
     if (Rates==null)
     {
        Rates = new Rate[0];
      }
        System.out.println("Rates := "+Rates);
%>
<body >
<h2>Rate Maintenance</h2>
<INPUT type=button value=Back onclick="location.href= '<%=contextPath%>/tss/rate/RateSearch.jsp'">
<h5>Total: <%=Rates.length%> Rate(s)</h5>
<table cols=6 border=1 >
<thead>
  <td><b>Grade</b></td>
  <td><b>Rate</b></td>
</thead>
<%  for (int i=0; i<Rates.length; i++)
    {           
%>
<tr>
	<td><a	href="<%=contextPath%>/servlet/tss.rate.RateSearch?formAction=Update&	grade=<%=Rates[i].getGrade()%>"
	><%=Rates[i].getGrade()%></a></td>
    <td><%=Rates[i].getRate()%></td>

</tr>
<%  } %>
</table>
</body>
<%@ include file="../tssfooter.jsp" %>
</body>
</html>

